﻿using System;
using LuaInterface;
using KopiLua;
using System.Collections.Generic;

namespace LuaInterfaceHelper
{
	public class LuaIContext 
	{
        public ObjectTranslator translator;

        public Lua.lua_CFunction panicCallback, lockCallback, unlockCallback;
        public Lua.lua_CFunction tracebackFunction;
        // lockCallback, unlockCallback; used by debug code commented out for now
         
        public bool _StatePassed;
       
        public bool executing;

        /// <summary>
        /// True while a script is being executed
        /// </summary>
        public bool IsExecuting { get { return executing; } }
       
        public readonly List<string> globals = new List<string>();
        public bool globalsSorted;		
	}
}
